-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add informations about community packages/repositories for Linux #323
Conversation
Added information about Arch, Fedora and Ubuntu/Debian repositories, packages and how to install information
Changed proposed lines in the page. |
Added a hyphen in the "community made" Co-authored-by: Max Desiatov <m_desiatov@apple.com>
@swift-ci test |
```bash | ||
sudo apt install -y curl | ||
curl -s https://archive.swiftlang.xyz/install.sh | sudo bash | ||
sudo apt install swiftlang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@parpok Would you be able to share the repo/sources for how this package is being built and distributed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahmishal
Here's a Swift forum post about the apt repo
There's also more information on the repository project website with included link to scripts code for adding the repository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't provide sources for the build and packaging scripts unfortunately, which makes it impossible to verify that these packages were built correctly or to understand what modifications were done to the original source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used pkgdiff
on both the official tar.gz file from swift.org and deb file from swiftlang.xyz repository (downloaded using apt download swiftlang
) and the result came that files were different. If anyone interested in auditing the difference I'm leaving the report pkgdiff
provided.
Also if the community repo doesn't suit needs I can delete any mentions of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahmishal @MaxDesiatov As the creator and maintainer of the https://swiftlang.xyz repository I can verify that all packages have been built without any modifications to the original source.
Where possible the packages are created from the original .tar.gz files from swift.org.
OS versions that swift.org does not supply are created from https://github.com/futurejones/swift-arm64/releases.
As I also build and maintain these packages I can also verify that they are built from the original source.
Build logs from https://ci.swiftlang.xyz/ show that no patches currently are needed for builds on ubuntu/debian on amd64 or arm64.
I use https://github.com/jordansissel/fpm to create the .deb packages from the .tar.gz files. fpm
does not change or modify any files contained in the .tar.gz files, it simply repackages them into .deb files.
@parpok pkgdiff
can not be used to check for diffs between two different file types like .tar and .deb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahmishal do we list non-swift.org produced installers / artifacts on this page, or is it limited to the ones the swift.org produces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahmishal do we list non-swift.org produced installers / artifacts on this page, or is it limited to the ones the swift.org produces?
We currently don't post installer or artifacts urls from outside of swift.org.
Add information about Linux packages and repositories maintained by the community
Motivation:
I already mentioned that in an issue I made recently (#319) about lack of information for easier installation methods on more common user Linux systems. I added that information into Linux downloads page so anyone interested in Swift can try it out on their Linux machine even easier.
Modifications:
Added information about methods of installing swift on Arch Linux, Fedora and about easier install for Ubuntu/Debian based distros to the Linux downloads page.
Result:
Downloads page will have more options for installing Swift on Linux. Information about methods using community packages and repositories.